package entity;

import java.util.List;

public class Dept {
    private Integer id;
    private String deptname;
    private List<Employee> employees;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDeptname() {
        return deptname;
    }

    public void setDeptname(String deptname) {
        this.deptname = deptname;
    }

    public List<Employee> getEmployees() {
        return employees;
    }

    public void setEmployees(List<Employee> employees) {
        this.employees = employees;
    }

    @Override
    public String toString() {
        return "entity.DeptEntity{" +
                "id=" + id +
                ", deptname='" + deptname + '\'' +
                '}';
    }
}
